/**  
 * All rights Reserved, Designed By www.richfit.com
 * @Title:  MultipleDataSource.java   
 * @Package cn.eonshine.base.config.mulitdb   
 * @Description:    TODO
 * @author: lanjf2000
 * @date:   2018-10-15 18:29:56
 * @version V1.0 
 * @Copyright: 2018 www.richfit.com Inc. All rights reserved. 
 */
package com.richfit.cuba.web.config.db.mulitdb;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**   
 * @ClassName:  MultipleDataSource   
 * @Description:TODO
 * @author: lanjf2000
 * @date:   2018-10-15 18:29:56
 *     
 * @Copyright: 2018 www.richfit.com Inc. All rights reserved. 
 */
public class MultipleDataSource extends AbstractRoutingDataSource {

	/**   
	 * <p>Title: determineCurrentLookupKey</p>   
	 * <p>Description: </p>   
	 * @return   
	 * @see org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource#determineCurrentLookupKey()   
	 */
	@Override
	protected Object determineCurrentLookupKey() {
		return DataSourceContextHolder.getDataSource();
	}

}
